﻿using System.Web;
using System.Web.Optimization;

namespace ChoMy
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/jquery.unobtrusive*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/home-css").Include(
               "~/Content/bootstrap.css",
               "~/Content/font-awesome.css",
               "~/Content/site.css",
               "~/Content/chomy-home.css"));

            bundles.Add(new ScriptBundle("~/bundles/home-js").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/respond.js",
                "~/Scripts/jquery.lazyload.js",
                "~/Scripts/site.js",
                "~/Scripts/chomy-home.js"));

            bundles.Add(new StyleBundle("~/Content/admin-css").Include(
                "~/Content/bootstrap.css",
                "~/Content/font-awesome.css",
                "~/Content/ionicons.css",
                "~/Content/AdminLTE.css",
                "~/Content/site.css",
                "~/Content/chomy-admin.css"));

            bundles.Add(new ScriptBundle("~/bundles/admin-js").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/respond.js",
                "~/Scripts/AdminLTE.js",
                "~/Scripts/site.js",
                "~/Scripts/chomy-admin.js"));

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = true;
        }
    }
}
